﻿using ComLib.ComType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeviceCommon
{
    //设备状态更新事件的委托
    public delegate void DeviceStateChangedEventHandler(Object sender, DeviceStateChangedEventArgs e);

    //因响应客户端请求，设备动作状态更新，需要向客户端发起回复的委托
    public delegate void DeviceMsgResponsedEventHandler(Object sender, DeviceMsgResponsedEventArgs e);

    //设备动作超时事件的委托
    public delegate void DeviceActionTimeoutEventHandler(Object sender, DeviceActionTimeoutEventArgs e);

    //设备长时动作执行完成事件的委托
    public delegate void WorkingCompletedHandler(string outString);

    //设备长时动作执行失败事件的委托
    public delegate void WorkingFailedHandler(string reason);

    //客户端收到服务器回复信息事件的委托
    public delegate void ClientPackageReceivedEventHandler(Object sender, ClientPackageReceivedEventArgs e);

    //客户端连接发生错误事件的委托
    public delegate void ClientErrorReportedEventHandler(Object sender, ClientErrorReportedEventArgs e);
}
